package com.hzw.service;

import com.hzw.bean.Article;
import com.hzw.dto.ArticleCondition;
import com.hzw.dto.ArticleParam;
import com.hzw.dto.ArticleResponse;

import java.util.List;

/**
 * Created by Administrator on 2019/3/14.
 */
public interface ArticleService {
    void addArticle(ArticleParam articleParam);

    int deleteArticleById(String articleId);

    int updateArticleById(ArticleParam articleParam);

    ArticleResponse selectArticleById(String articleId);

    //List<Article> selectArticleByUserId(String userId);

    List<ArticleResponse> selectArticleByCondition(ArticleCondition articleCondition);

    List<ArticleResponse> selectChargeFull();

    List<ArticleResponse> selectArticleByKeyWord(String keyWord);

    void addLike(String userId,String articleId);

    int cancelLike(String userId,String articleId);

    void transpondArticle(String transpondUserId,Article article);

    void chargeArticle(String transpondUserId,Article article);

    List<ArticleResponse> selectRecommendArticle();

    int deleteChargeFull(Article article);

    List<ArticleResponse> selectNewestArticle();

    List<ArticleResponse> selectRecommendArticleByCondition(Article article);
}
